package ModelLayer;

/**
 *
 * @author Gruppe 2
 */
public class SalesLineItem {
    private int salesLineID;
    private int quantity;
    private Product product;
    private double lineTotal;

    public SalesLineItem(int quantity, Product product)
    {
        this.quantity = quantity;
        this.product = product;
    }




    public SalesLineItem()
    {
    }

    public int getSalesLineID()
    {
        return salesLineID;
    }

    public void setSalesLineID(int salesLineID)
    {
        this.salesLineID = salesLineID;
    }

    public Product getProduct()
    {
        return product;
    }

    public void setProduct(Product product)
    {
        this.product = product;
    }

    public int getQuantity()
    {
        return quantity;
    }

    public void setQuantity(int quantity)
    {
        this.quantity = quantity;
    }

    public double getLineTotal()
    {
         return product.getSalesPrice() * quantity;

    }
}
